package com.hishop.service;

import com.github.pagehelper.PageInfo;
import com.hishop.common.ServerResponse;

import java.util.Map;

/**
 * Created by hejie on 2017/7/27.
 */
public interface IOrderService {
    /*订单列表*/
    ServerResponse<PageInfo> getOrderList(Integer userId, int pageNum, int pageSize);
    /*订单详情*/
    ServerResponse getOrderDetail(Integer userId, Long orderNo);
    /*获取订单的商品信息*/
    ServerResponse getOrderCartProduct(Integer userId);
    /*取消订单*/
    ServerResponse cancelOrder(Integer userId, Long orderNo);
    /*创建订单*/
    ServerResponse createOrder(Integer userId, Long shippingId);
    /*支付宝扫码支付*/
    ServerResponse pay(Long orderNo, Integer userId, String path);
    /*支付宝支付回调*/
    ServerResponse aliCallback(Map<String, String> params);
    /*查询订单支付状态*/
    ServerResponse<Boolean> queryOrderPayStatus(Integer userId, Long orderNo);
    /*后台管理订单列表*/
    public ServerResponse<PageInfo> manageList(int pageNum, int pageSize);
    /*后台管理订单详情*/
    ServerResponse manageDetail(Long orderNo);
    /*后台管理订单搜索，便于后期拓展*/
    ServerResponse<PageInfo> manageSearch(Long orderNo, int pageNum, int pageSize);
    /*后台管理订单发货*/
    ServerResponse<String> manageSendGoods(Long orderNo);

    void closeOrder(int minouse);
}
